import {
    baseURL
} from './config.js'
export default function request(options) {
    return new Promise((resolve, reject) => {
        uni.request({
            url: baseURL + options.url,
            method: options.method || 'get',
            header:options.header,
            data: options.data || {},
            success: resolve,
            fail: reject,
            complete: res => {
               
            }
        })
    })
}